<!DOCTYPE html>
<html>
<head>
    <title>CometD reload demo</title>
    <script data-main="application"  src="../require.js"></script>
</head>
<body>

<h1>Reload test</h1>

<a href="../..">Main Demo index</a>

<br/>

<p>
    This test shows how a page can be loaded and resume a CometD connection with the same
    client ID.  This allows site navigation and page loads to be done without needing to
    reestablish an entire CometD session on the server (the client still needs to resubscribe
    so that it can define local callbacks in the newly loaded page).
</p>

<blockquote>
    <a href=".">RELOAD</a>, <a href="../../dojo-examples/reload/">DOJO</a>
</blockquote>

<p>
    The ID's below should be the same after this page is reloaded:
</p>

<blockquote>
    <table>
        <tr>
            <td>Previous ID:</td>
            <td><span id='previous'></span></td>
        </tr>
        <tr>
            <td>Current ID:</td>
            <td><span id='current'></span></td>
        </tr>
        <tr>
            <td>Advice:</td>
            <td>
                <pre id='advice'></pre>
            </td>
        </tr>
    </table>
</blockquote>

<p>
    A full fledged reload example is available in the jQuery chat example.
</p>

</body>
</html>
